package com.chx.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author cp-月入过万
 * @Date 2025/5/29
 * 供应商
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Suppliers implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("供应商ID")
    //供应商id，自增，主键
    private Long supplierId;

    @ApiModelProperty("供应商编号")
    //供应商名称，唯一
    private String supplierName;

    @ApiModelProperty("联系人")
    //联系人
    private String contactPerson;

    @ApiModelProperty("联系电话")
    //联系电话
    private String phone;

    @ApiModelProperty("地址")
    //地址
    private String address;

    @ApiModelProperty("邮箱")
    //邮箱
    private String email;

    @ApiModelProperty("描述")
    //描述
    private String description;

    @ApiModelProperty("创建时间")
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
